package com.turing.post.capitalaccounts.util;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 销售机构上存/缴现金支出单
 * 
 * @author 李治
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "SALECASHWITHDRAWBILL")
public class SaleCashWithdrawBill implements Serializable {
	/**
	 * 现金上存/缴单ID
	 */
	private BigInteger saleCashWithdrawBillId;
	/**
	 * 销售机构号
	 */
	private String saleBranchNo;
	/**
	 * 日期
	 */
	private Date tranDate;
	/**
	 * 记账时间
	 */
	private Date tranTime;
	/**
	 * 发生额
	 */
	private BigInteger amount;
	/**
	 * 收款人银行账户ID
	 */
	private BigInteger payeeBankAccountId;

	private String voucherNo;// 凭证号 varchar(60) Null
	//private BigInteger paidBankAccountId;// 付款人银行账户
	/**
	 * 取消现金上存/缴单ID
	 */
	private BigInteger cancelSaleCashWithdrawBillId;
	/**
	 * 操作员ID
	 */
	private BigInteger operId;
	/**
	 * 备注
	 */
	private String remark;

	public SaleCashWithdrawBill() {
		super();
	}

	@Id
	@Column(name = "SALECASHWITHDRAWBILLID", nullable = false)
	public BigInteger getSaleCashWithdrawBillId() {
		return saleCashWithdrawBillId;
	}

	public void setSaleCashWithdrawBillId(BigInteger saleCashWithdrawBillId) {
		this.saleCashWithdrawBillId = saleCashWithdrawBillId;
	}

	@Column(name = "SALEBRANCHNO", nullable = false)
	public String getSaleBranchNo() {
		return saleBranchNo;
	}

	public void setSaleBranchNo(String saleBranchNo) {
		this.saleBranchNo = saleBranchNo;
	}

	@Column(name = "TRANDATE")
	public Date getTranDate() {
		return tranDate;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	@Column(name = "TRANTIME")
	public Date getTranTime() {
		return tranTime;
	}

	public void setTranTime(Date tranTime) {
		this.tranTime = tranTime;
	}

	@Column(name = "AMOUNT", nullable = false)
	public BigInteger getAmount() {
		return amount;
	}

	public void setAmount(BigInteger amount) {
		this.amount = amount;
	}

	@Column(name = "PAYEEBANKACCOUNTID")
	public BigInteger getPayeeBankAccountId() {
		return payeeBankAccountId;
	}

	public void setPayeeBankAccountId(BigInteger payeeBankAccountId) {
		this.payeeBankAccountId = payeeBankAccountId;
	}

	@Column(name = "voucherNo")
	public String getVoucherNo() {
		return voucherNo;
	}

	public void setVoucherNo(String voucherNo) {
		this.voucherNo = voucherNo;
	}

//	@Column(name = "paidBankAccountId")
//	public BigInteger getPaidBankAccountId() {
//		return paidBankAccountId;
//	}
//
//	public void setPaidBankAccountId(BigInteger paidBankAccountId) {
//		this.paidBankAccountId = paidBankAccountId;
//	}

	@Column(name = "CANCELSALECASHWITHDRAWBILLID")
	public BigInteger getCancelSaleCashWithdrawBillId() {
		return cancelSaleCashWithdrawBillId;
	}

	public void setCancelSaleCashWithdrawBillId(
			BigInteger cancelSaleCashWithdrawBillId) {
		this.cancelSaleCashWithdrawBillId = cancelSaleCashWithdrawBillId;
	}

	@Column(name = "OPERID", nullable = false)
	public BigInteger getOperId() {
		return operId;
	}

	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}